package com.thb.pay.api.payment.fallback;

import com.thb.pay.api.payment.PayProductTypeServiceApi;
import com.thb.pay.api.payment.vo.req.PayProductTypePageReq;
import com.thb.pay.api.payment.vo.req.PayProductTypeReq;
import com.thb.pay.api.payment.vo.resp.PayProductTypeVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class PayProductTypeServiceApiFallbackFactory implements FallbackFactory<PayProductTypeServiceApi> {


    @Override
    public PayProductTypeServiceApi create(Throwable throwable) {
        return new PayProductTypeServiceApi() {
            @Override
            public PageResult<PayProductTypeVo> findPage(PayProductTypePageReq pageReq) {
                return null;
            }

            @Override
            public List<PayProductTypeVo> findAllList() {
                return null;
            }

            @Override
            public List<PayProductTypeVo> findListByIds(List<Long> ids) {
                return null;
            }

            @Override
            public PayProductTypeVo getById(Long id) {
                return null;
            }

            @Override
            public void add(PayProductTypeReq payProductTypeReq) {

            }

            @Override
            public void update(PayProductTypeReq payProductTypeReq) {

            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}